package com.hsnn.medstgmini.sys.model;

import java.io.Serializable;
import java.sql.Blob;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="sys_notice_log")
public class SysNoticeLog implements Serializable{
    
	private static final long serialVersionUID = 1L;
	
	private String logId;//日志id
	private String sysNoticeId;//公告id
	private String sysNoticeCode;//公告code
	private String title;//公告标题
	private String org;//组织机构
	private String content;//内容
	private Blob blobContent;
	private Timestamp dateTime;//时间
	private String url;//附件路径
	private int readCount;//读取数量
	private Timestamp updDateTime;//更新时间
	private String updUser;//更新人
	private int status;
	
	@Id
    @Column(name="log_id")
	public String getLogId() {
		return logId;
	}
	public void setLogId(String logId) {
		this.logId = logId;
	}
	@Column(name="sys_notice_id")
	public String getSysNoticeId() {
		return sysNoticeId;
	}
	public void setSysNoticeId(String sysNoticeId) {
		this.sysNoticeId = sysNoticeId;
	}
	
	@Column(name="sys_notice_code")
	public String getSysNoticeCode() {
		return sysNoticeCode;
	}
	public void setSysNoticeCode(String sysNoticeCode) {
		this.sysNoticeCode = sysNoticeCode;
	}
	
	@Column(name="title")
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name="org")
	public String getOrg() {
		return org;
	}
	public void setOrg(String org) {
		this.org = org;
	}
	
	@Transient
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	@Column(name="content")
	public Blob getBlobContent() {
		return blobContent;
	}
	public void setBlobContent(Blob blobContent) {
		this.blobContent = blobContent;
	}
	
	@Column(name="datetime")
	public Timestamp getDateTime() {
		return dateTime;
	}
	public void setDateTime(Timestamp dateTime) {
		this.dateTime = dateTime;
	}
	
	@Column(name="url")
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
	@Column(name="read_count")
	public int getReadCount() {
		return readCount;
	}
	public void setReadCount(int readCount) {
		this.readCount = readCount;
	}
	
	@Column(name="upd_datetime")
	public Timestamp getUpdDateTime() {
		return updDateTime;
	}
	public void setUpdDateTime(Timestamp updDateTime) {
		this.updDateTime = updDateTime;
	}
	
	@Column(name="upd_user")
	public String getUpdUser() {
		return updUser;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}
	
	@Column(name="status")
    public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
}
